<?php

namespace app\index\controller;

use think\Controller;
use think\facade\Request;
use app\index\validate\Edit;

class Category extends Controller
{
    public function index()
    {
        return $this->fetch();
    }

    public function edit()
    {
        //判断请求
        if (Request::isPost()) {
            $data = Request::post();
            
            dump($data);
            $validata = new Edit();
        }
        return $this->fetch();
    }
}
